package com.chenyongjing.design.pattern.visitor.dispatch.dymdispatch;

/**
 * 动态分派，java
 * 动态单分爱
 * @Author chen
 * @Date 2022/12/11 22:05
 */
public class Main {
    public static void main(String[] args) {
        Person man = new Man();
        Person woman = new Woman();
        //动态分派
        man.test();
        woman.test();

    }
}
